package com.sd.service.impl;
import com.sd.common.beans.AppInfo;
import com.sd.dao.AppInfoDAO;
import com.sd.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
@Service
@Transactional(rollbackOn = Exception.class)
public class AppInfoServiceImpl implements AppInfoService {

    @Autowired
    private AppInfoDAO appInfoDAO;

    @Override
    public void save(AppInfo appInfo) throws Exception {
        appInfoDAO.save(appInfo);
    }

    @Override
    public AppInfo getByAppId(String appId) throws Exception {
        return appInfoDAO.getByAppId(appId);
    }
}
